package main

import (
	"coupons/app/http/middlewares"
	"coupons/bootstrap"
	"coupons/pkg/logger"
	"net/http"
)

func main() {

	bootstrap.SetupDB()

	router := bootstrap.SetupRoute()

	// err := http.ListenAndServe(":"+c.GetString("app.port"), middlewares.RemoveTrailingSlash(router))
	err := http.ListenAndServe(":3000", middlewares.RemoveTrailingSlash(router))
	logger.LogError(err)

}
